package com.ly.honor.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.honor.entity.GoodsAppraise;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.honor.entity.dto.GoodsAppraiseCreateDTO;
import com.ly.honor.entity.vo.GoodsAppraiseQueryVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author 17798
* @description 针对表【bs_goods_appraise】的数据库操作Service
* @createDate 2023-04-05 00:28:22
*/
public interface GoodsAppraiseService extends IService<GoodsAppraise> {

    Page<GoodsAppraiseQueryVO> getGoodsAppraisePage(Integer pageNum, Integer pageSize,Integer goodsId);

    Integer getGoodsAppraiseCount(Integer goodsId);

    void addGoodsAppraise(GoodsAppraiseCreateDTO goodsAppraiseCreateDTO, HttpServletRequest request);

    void addOneAppraise(GoodsAppraiseCreateDTO goodsAppraiseCreateDTO, HttpServletRequest request);
}
